/**
 * @date   2011-5-9
 * @author tianye
 */
package cn.edu.dlut.WingGame.GUI;

import cn.edu.dlut.WingGame.BaseType.ObjectState;
import cn.edu.dlut.WingGame.Game.WingLayer;

public class WingGUI extends WingLayer {
	public boolean activeFlag;

	public WingGUI() {

	}

	public WingGUI(String name) {
		super(name);
	}

	public void setActive(boolean flag) {
		activeFlag = flag;
		ObjectState state;
		if (flag)
			state = ObjectState.normal;
		else
			state = ObjectState.stop;
		for (int i = 0; i < mObject.getSize(); i++)
			mObject.getObject(i).setState(state);
	}

}
